package com.song.sparkstudy.stream;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class WordCountServer {
	
	
	public static void main(String[] args) {
		
		try {
			ServerSocket server = new ServerSocket(65533);
			
			
			Socket socket = server.accept();
			
			OutputStream out = socket.getOutputStream();
			
			out.write("hello word ".getBytes());
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
	}
}
